import request from '../utils/request';
export const productData = query => {
    return request({
        url: '/api/srm/product/doMain',
        method: 'post',
        // url: './json/selectProduct.json',
        // method: 'get',
        params: query,
    });
};
export const doAdd = query => {
    return request({
        url: '/api/srm/product/doAdd',
        method: 'post',
        // url: './json/true.json',
        // method: 'get',
        data: query,
    });
};
export const doUpdate = query => {
    return request({
        url: '/api/srm/product/doUpdate',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        data: query
    });
};
export const doDelete = query => {
    return request({
        url: '/api/srm/product/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
//查询一个产品的基本信息 通过ProId
export const selectOnePro = query => {
    return request({
        url: '/api/srm/product/selectById',
        method:'post',
        // url:'./json/selectOneProduct.json',
        // method: 'get',
        params: query
    });
};
//查询产品的基本信息List 通过厂家ID manuId 不分页
export const selectProByManuId = query => {
    return request({
        url: '/api/srm/product/selectById',
        method:'post',
        // url:'./json/selectProduct.json',
        // method: 'get',
        params: query
    });
};
/*查询产品对比列表*/
export const compareData = query => {
    return request({
        url: '/api/srm/product/doCompare',
        method:'post',
        // url:'./json/selectCompare.json',
        // method: 'get',
        params: query
    });
};
export const doDeletePara = query => {
    return request({
        url: '/api/srm/propara/doDelete',
        method:'post',
        // url: './json/true.json',
        // method: 'get',
        params: query
    });
};
/*导出*/
export const excelPro = query => {
    return request({
        url: '/api/srm/excel/exportProExcel',
        method:'get',
        // url:'./json/true.json',
        // method: 'get',
        params: query
    });
};


